package jmu.cyxwcy.librarymanagement.service.impl;

import jmu.cyxwcy.librarymanagement.pojo.Admin;
import jmu.cyxwcy.librarymanagement.mapper.AdminMapper;
import jmu.cyxwcy.librarymanagement.service.IAdminService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jmu.cyxwcy.librarymanagement.utils.Md5Util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2024-06-24
 */
@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements IAdminService {

    @Autowired
    private AdminMapper adminMapper;
    @Override
    public Admin findByUserName(String username) {
        Admin admin= adminMapper.findByUserName(username);
        return admin;
    }

}
